//基础数据类型
export interface T_ResponseData {
    code: number,
    message: string,
    ok: boolean
}

//职位数据类型
export interface T_RoleData {
    id?: number,
    createTime?: string,
    updateTime?: string,
    roleName: string,
    remark?: null
}

//服务器返回职位数据响应的数据类型
export interface T_RoleResponseData extends T_ResponseData {
    data: {
        records: T_RoleData[],
        total: number,
        size: number,
        current: number,
        orders: [],
        optimizeCountSql: boolean,
        hitCount: boolean,
        countId: null,
        maxLimit: null,
        searchCount: boolean,
        pages: number
    }
}

//菜单与按钮数据ts类型
export interface T_MenuData {
    id: number,
    createTime: string,
    updateTime: string,
    pid: number,
    name: string,
    code: string,
    toCode: string,
    type: number,
    status: null,
    level: number,
    children?: T_MenuData[],
    select: boolean
}

//菜单权限与按钮权限数据的ts类型
export interface T_MenuResponseData extends T_ResponseData {
    data: T_MenuData
}
